import 'package:flutter/material.dart';

class Practice04 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "组件",
      home: Scaffold(
        appBar: AppBar(
          title: Text("组件列表"),
        ),
        body: Container(
          child: ListView(
            scrollDirection: Axis.horizontal,
            children: <Widget>[
            Container(
            width: 100,
            color: Colors.green,
          ),
          Container(
            width: 100,
            color: Colors.blue,
          ),
          Container(
            width: 100,
            color: Colors.red,
          ),
          Container(
            width: 100,
            color: Colors.green,
          ),
          Container(
            width: 100,
            color: Colors.blue,
          ),
          Container(
            width: 100,
            color: Colors.red,
          ),
          Container(
            width: 100,
            color: Colors.green,
          ),
          Container(
            width: 100,
            color: Colors.blue,
          ),
          Container(
            width: 100,
            color: Colors.red,
          ),
          /*Text(
                  "我是文本按钮",
                  style: TextStyle(
                      color: Colors.red,
                      decoration: TextDecoration.lineThrough,
                      decorationColor: Colors.white,
                      fontSize: 28),
                ),
                Icon(
                  Icons.phone,
                  color: Colors.green,
                  size: 80,
                ),
                IconButton(
                  icon: Icon(Icons.cake),
                  tooltip: 'tooltip',
                  onPressed: () {
                    print("按下操作");
                  },
                ),
                RaisedButton(
                  child: Text("按钮"),
                  onPressed: () {
                    print('登录按钮');
                  },
                ),
                ListTile(
                  leading: Icon(Icons.airplay),
                  title: Text('Airplay'),
                ),
                ListTile(
                  leading: Icon(Icons.alarm),
                  title: Text('Alarm'),
        )*/
        ],
      ),
    ),)
    );
  }
}
